<%--
  Created by IntelliJ IDEA.
  User: barton
  Date: 16-4-19
  Time: 下午3:30
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Fruit</title>
    <script src="/js/jquery-2.2.3.js"></script>
    <script>
        $(function () {
            $.ajax({
                url: "http://localhost:8081/v1/fruits",
                type: "get",
                success: function (data, res, jqXHR) {
                    console.log(data);
                    console.log(res);
                    console.log(jqXHR.status);
                    console.log(jqXHR.readyState);
                    console.log(jqXHR.responseText);
                },
                error: function (error) {
                    console.log(error);
                }
            });
        });
    </script>
</head>
<body>

</body>
</html>
